import request from '@/utils/request'

export default {
  enterList(params) {
    return request({
      url: '/v1/enterList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/enter/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/enterUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/enterAdd',
      method: 'post',
      data
    })
  },
  archives(id) {
    return request({
      url: `/v1/enterArchive/${id}`,
      method: 'get'
    })
  },
  delete(id) {
    return request({
      url: `/v1/enterDel/${id}`,
      method: 'get'
    })
  },
  append(data) {
    return request({
      url: '/v1/enterAppend',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: '/v1/enterRemove',
      method: 'post',
      data
    })
  },
  getOrder(id) {
    return request({
      url: `/v1/order/${id}`,
      method: 'get'
    })
  },
  editPart(data) {
    return request({
      url: '/v1/enterEdit',
      method: 'post',
      data
    })
  },
  review(data) {
    return request({
      url: '/v1/enterReview',
      method: 'post',
      data
    })
  },
  appendAll(data) {
    return request({
      url: '/v1/enterAppendAllOrder',
      method: 'post',
      data
    })
  },
  adminApprove(data) {
    return request({
      url: '/v1/enterAdmin',
      method: 'post',
      data
    })
  }
}
